package com.carbon.fallback;

import com.carbon.feignclient.MemberFeignClient;
import com.carbon.model.Member;
import com.carbon.model.Result;
import org.springframework.stereotype.Component;

/**
 * @author yeshusheng
 * @version 1.0.0
 * @date 2021/6/28 19:22
 * @description  查询不到服务方法返回错误（feignclient调用示例代码）
 */
@Component
public class MemberFallback implements MemberFeignClient {
    @Override
    public Result<Member> login() {
        return new Result<Member>(Result.codeFailure, "请求服务网关失败，请稍后重试", null);
    }
}
